package com.ruitu.health_1.mvp.model;

import com.ruitu.arad.api.RxUtil;
import com.ruitu.arad.base.BaseModel;
import com.ruitu.health_1.dao.http.APIRetrofit;
import com.ruitu.router_module.bean.BaseResult2;
import com.ruitu.router_module.bean.user.User;

import io.reactivex.Observable;
import okhttp3.RequestBody;

public class AutoLoginModel {
    public static class AutoLoginM extends BaseModel {
        public Observable<BaseResult2<User>> autoLogin(RequestBody body){
            return APIRetrofit.getDefault().autoLogin(body)
                    .compose(RxUtil.<BaseResult2<User>>subIoObMain());
        }
    }

}
